package com.gxa.shop.dao.product;

import com.gxa.shop.bean.dto.ProductQueryPage;
import com.gxa.shop.bean.pojo.Product;
import com.gxa.shop.bean.vo.ProductOption;
import com.gxa.shop.bean.vo.ProductVo;

import java.util.List;

/**
 * com.gxa.shop.bean.dao
 * User: zjy
 * Date: 2024/12/19 14:29
 * motto:   逆水行舟不进则退
 * Description:
 * Version: V1.0
 */
public interface ProductDao {

    int insert(Product product);

    int update(Product product);
    int deleteById(Integer productId);
    String getProductImageByProductId(String productId);

    void updateProductImage(String productId,String imagePath);

    Long findByTotal(ProductQueryPage productQueryPage);

    List<ProductOption> findByPage(ProductQueryPage productQueryPage);

    List<ProductVo> queryByCategory(Integer categoryId);

    ProductVo queryById(String productId);

    List<ProductVo> findByName(String name);
}
